<template>
  <div id="novel">
    <div class="container">
      <div class="title">小说</div>

      <div class="row-book">
        <div class="li" v-for="item in 20" :key="item">
          <div class="tei">无情的游戏，我和母女俩玩三P无情的游戏，我和母女俩玩三P</div>
          <span class="time">[2022-10-21]</span>
        </div>
      </div>

      <div class="pagination">
        <el-pagination
            background
            @size-change="pageChange"
            @current-change="pageChange"
            layout="prev, pager, next"
            :current-page="pageSizes"
            :page-size="20"
            :total="1000" >
        </el-pagination>
      </div>
      <div class="phome">
        <van-pagination
            @change="pageChange"
            v-model="pageSizes"
            :page-count="12"
            mode="simple" />
      </div>
    </div>
  </div>

</template>

<script>
export default {
  name: "novel",
  data(){
    return{
      pageSizes:5
    }
  },
  methods:{
    pageChange(e){
      console.log(e)
      this.pageSizes = e
    },
  }
}
</script>

<style lang="scss" scoped>
.title{width: 100%; color: #FFF;
  height: 40px; line-height: 40px; padding: 0px 15px; box-sizing: border-box;
  margin: 10px 0; border-bottom: 1px solid #aaa;
  background-color: #0086cf;

.total{color: #333;float:right;line-height:40px;font-size:14px;text-align:right;margin-right: 10px;}
.total em{padding:0 5px;color:#ffbf00;font-weight:bold; font-style: normal; font-size: 16px;}
}
.row-book{ margin-bottom: 30px;
  background: #FFF; padding: 0px 10px;
  .li{display: flex;
    cursor: pointer;
    line-height: 50px;
    border-bottom: dashed 1px #aaa;
    flex-wrap: nowrap;
    .tei{flex: 1; white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;}

    .time{padding-left: 20px;color: #333}

  }
}

.phome{display: none}
.pagination{text-align: center}

</style>
